package ljt.floatball.ui;

import android.support.annotation.LayoutRes;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import ljt.floatball.widget.FloatingDragger;

/**
 * @author jiangtao
 * @date 2017/11/28
 */

public abstract class BaseActivity extends AppCompatActivity {
  protected View view;
  protected FloatingDragger floatingDragger;

  @Override
  public void setContentView(@LayoutRes int layoutResID) {
    floatingDragger = new FloatingDragger(this, layoutResID);
    view = floatingDragger.getView();
    super.setContentView(view);
  }
}
